package com.coocaa.aries.jmeter.validator;


import com.coocaa.aries.core.base.exception.AriesException;

import java.io.File;

/**
 * @author : bijiahao
 * @date : 2019/5/28.
 * @description: 文校验工具类
 */
public class FileValidator {
    /**
     * 验证文件是否存在
     *
     * @param path
     */
    public static void validFileExist(String path) {
        File file = new File(path);
        if (!file.exists()) {
            throw new AriesException("该文件不存在！" + path);
        }
    }
}
